package com.lagou.sessionshare.service.impl;

import com.lagou.sessionshare.mapper.LoginMapper;
import com.lagou.sessionshare.service.LoginService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author: jie.zhao
 * @create: 2021/03/29 11:14
 */
@Service
public class LoginServiceImpl implements LoginService {

    @Resource
    private LoginMapper loginMapper;

    @Override
    public Long login(String username, String pwd) {
        return loginMapper.selectUserIdByUserNameAndPwd(username,pwd);
    }
}
